package com.jiufengxinxi.ts.device.equipment.test;

import com.jiufengxinxi.ts.common.utils.socket.ISocketRequestHandle;

import java.awt.*;

public class ClinetSocketRequestHandle implements ISocketRequestHandle {
	
	private TextArea taContent;

	@Override
	public String request(String report, String from) {
		//taContent.setText(taContent.getText() +"\n"+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss  ").format(new Date())+"收到请求信息："+ report);
		if(!report.equals("00000000")&&!report.equals("0000000000000000")) {
			System.out.println("收到："+report);
		}
		return null;
	}

	@Override
	public boolean decodeRelation(String report) {
		// TODO Auto-generated method stub
		return false;
	}

	public TextArea getTaContent() {
		return taContent;
	}

	public void setTaContent(TextArea taContent) {
		this.taContent = taContent;
	}

	@Override
	public void connection(String from) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String disconnection(String from) {
		// TODO Auto-generated method stub
		return null;
	}

	
	
}
